package com.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.entity.SpuInfo;
import com.mall.vo.Attr;
import com.mall.vo.PurchaseVo;
import com.mall.vo.SpuInfoVo;
import com.mall.vo.SpuSaveVo;

import java.util.List;
import java.util.Map;

/**
 * 商品评价
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-24 16:47:36
 */
public interface SpuInfoService extends IService<SpuInfo> {

    //  PageUtils queryPage(Map<String, Object> params);

    IPage<SpuInfo> listByNamePage(Integer currentPage, Integer pageSize, String spuName);

    IPage<SpuInfo> listByDate(Integer currentPage, Integer pageSize, String spuName);

    IPage<SpuInfo> listByDesc(Integer currentPage, Integer pageSize, String spuName);

    IPage<SpuInfo> listByAsc(Integer currentPage, Integer pageSize, String spuName);

    IPage<SpuInfo> listBySales(Integer currentPage, Integer pageSize, String spuName);


    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfo spuInfo);

    void saveInfo(SpuInfoVo vo);

    List<Attr> getPurchaseBuy(Long spuId);
}

